//1 . 导入所有的公共组件
// 定义插件，并导出
import XtxSkeleton  from '@/components/XtxSkeleton/XtxSkeleton.vue'
import XtxCarousel from './XtxCarousel/XtxCarousel.vue'
import XtxMore from './XtxMore/XtxMore.vue'
import XtxBread from './XtxBread/XtxBread.vue'
import XtxBreaditem from './XtxBread/XtxBreaditem.vue'
import XtxNumber from './XtxNumber/XtxNumber.vue'
import XtxCheckbox from './XtxCheckbox/XtxCheckbox.vue'
import XtxMessage from './XtxMessage/XtxMessage.vue'
import XtxDialog from './XtxDialog/XtxDialog.vue'
import XtxCity from './XtxCity/XtxCity.vue'
import XtxSwitch from './XtxSwitch/XtxSwitch.vue'

import {App} from 'vue'
export default{
  install(app:App){
    console.log('app',app)
    app.component('XtxSkeleton',XtxSkeleton)
    app.component('XtxCarousel',XtxCarousel)
    app.component('XtxMore',XtxMore)
    app.component('XtxBread',XtxBread)
    app.component('XtxBreaditem',XtxBreaditem)
    app.component('XtxNumber',XtxNumber)
    app.component('XtxCheckbox',XtxCheckbox)
    app.component('XtxMessage',XtxMessage)
    app.component('XtxDialog',XtxDialog)
    app.component('XtxCity',XtxCity)
    app.component('XtxSwitch',XtxSwitch)
  }
}